package net.zoneland.knowledge.controller.redBase.service.impl;


import net.zoneland.knowledge.controller.bean.*;
import net.zoneland.knowledge.controller.redBase.service.RedBaseService;
import net.zoneland.knowledge.dao.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 红色基地详情.
 */
@Service
public class RedBaseServiceImpl implements RedBaseService{

    /**
     * 日志.
     */
    private static final Logger LOGGER = LoggerFactory.getLogger(RedBaseServiceImpl.class);

    /**
     * 红色基地.
     */
    @Autowired
    private RedBaseMapper redBaseMapper;

    @Override
    public List<RedBaseInfo> queryList(final RedBaseRouteQueryVo queryVo) {
        return redBaseMapper.search(queryVo);
    }

    /**
     * 通过id查询详情.
     *
     * @param id
     * @return
     */
    @Override
    public RedBaseInfoWithBlobs queryById(final String id) {
        return redBaseMapper.searchById(id);
    }
}
